package com.comdo.newup_loan.module.myinfo;

import android.app.Activity;

import com.comdo.newup_loan.base.BaseRxPresenter;
import com.comdo.newup_loan.base.BaseView;
import com.comdo.newup_loan.model.NativeBean;
import com.comdo.newup_loan.model.UpLoadCard;
import com.comdo.newup_loan.model.UserBaseInfo;

import java.util.List;

/**
 * Created by liyuan on 2017/10/30.
 */

interface MyInfoContract {
    interface View extends BaseView {
        void Fail(String failMessage);

        void getBaseInfo(UserBaseInfo userBaseInfo);

        void saveInfo(String result);

        void getNativePlace(List<NativeBean> datas);

        void upLoad(UpLoadCard result);

        void changeCard(String result);

        void getXwWeb(String url);
    }

    abstract class Presenter extends BaseRxPresenter<View> {

        public abstract void getInfo(int userId);

        public abstract void saveInfo(int userId,UserBaseInfo userBaseInfo);

        public abstract void getNativePlace();

        public abstract void upLoad(int userId, String filePath,int type);

        public abstract void changeCard(int userId);

        public abstract void getXwWeb(Activity tag);

    }
}
